{include file="public/head"/} 
  <body>
    <div class="x-nav">
      <span class="layui-breadcrumb">
        <a><cite>后台管理</cite></a>
        <a><cite>停车场地管理中心</cite></a>
        <a><cite>停车账单管理</cite></a>
      </span>
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
    </div>
    <div class="x-body">
      <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so"  method="get" action="#">
          <div class="layui-input-inline">
            <select name="parkingNo" lay-filter="commname" id="commname">
              <option value="">所属停车场</option>
              {foreach $parkinglist as $parking}
              <option value="{$parking.parkingNo}" {if isset($parkingNo)}{if $parkingNo == $parking.parkingNo} selected {/if}{/if}>{$parking.parkingName}</option>
              {/foreach}
            </select>
          </div>
		  <!--<input type="text" name="pay_money"  placeholder="订单金额" autocomplete="off" class="layui-input" value="{if isset($pay_money)}{$pay_money}{/if}">
          <input type="text" name="order_no"  placeholder="订单号" autocomplete="off" class="layui-input" value="{if isset($where.order_no)}{$where.order_no}{/if}">-->
          <input type="text" name="carPlateNo"  placeholder="车牌号码" autocomplete="off" class="layui-input" value="{if isset($carPlateNo)}{$carPlateNo}{/if}">
		 
          <div class="layui-input-inline">
            <select name="payType">
				<option value="">付款方式</option>
				<option value="1" {if isset($payType)}{if $payType == '1'}selected{/if}{/if}>支付宝扫码</option>
				<option value="2" {if isset($payType)}{if $payType == '2'}selected{/if}{/if}>微信扫码</option>
				
				<option value="cash" {if isset($payType)}{if $payType == 'cash'}selected{/if}{/if}>现金</option>
				<option value="3" {if isset($payType)}{if $payType == '3'}selected{/if}{/if}>优惠券</option>
				<option value="4" {if isset($payType)}{if $payType == '4'}selected{/if}{/if}>城市大脑扣款</option>
				<option value="5" {if isset($payType)}{if $payType == '5'}selected{/if}{/if}>支付宝代扣</option>
            </select>
          </div>          
          
		 
          <button class="layui-btn"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
          <!-- <button type="reset" class="layui-btn"><i class="layui-icon">&#xe639;</i></button> -->
        </form>
      </div>
      <xblock>
	  <button class="layui-btn" onclick="orderDump('{$export}')"><i class="layui-icon"></i>批量导出</button>&nbsp;&nbsp;&nbsp;&nbsp;
        
        <span class="x-right" style="line-height:40px">共有数据：{$number} 条</span>
      </xblock>
      <table class="layui-table">
        <thead>
          <tr>
          
			<th style="text-align: center; font-size: 16px; height: 30px;">ID</th>
            <th style="text-align: center; font-size: 16px;">停车场</th>
            <th style="text-align: center; font-size: 16px;">车牌号码</th>
            
			<th style="text-align: center; font-size: 16px;">金额</th>
           
			{if $usertype == 0}
            <th style="text-align: center; font-size: 16px;">操作</th>
            {/if}
            
          </tr>
        </thead>
        <tbody>
          {foreach $list as $lis}
          <tr>
          
			<td style="text-align: center;">{$lis.order_id}</td>
            <td style="text-align: center;">{$lis.parkingName}</td>
            <td style="text-align: center;">{$lis.carPlateNo}</td>
            <td style="text-align: center;">{$lis.invoiceAmount}</td>
            
			<td style="text-align: center;">
			{if $lis.invoice_type == 1 ||  $lis.invoice_type == 2}
              <button class="layui-btn" onclick="x_admin_show('查看发票','{:url('CheckEInvoice')}?order_id={$lis.order_id}',900,700)">查看</button>
              
            {/if}
             {if $lis.invoiceCode}
              <!--<button class="layui-btn  layui-btn-normal" onclick="x_admin_show('再次提交','{:url('delivery')}?id={$lis.id}',600,400)">再次提交</button>-->
              
              
              {/if}
           </td>
          </tr>
          {/foreach}
        </tbody>
      </table>
      <div class="page">
        <div>
            {$invoicelist->render()|raw}
        </div>
      </div>

    </div>
    <script>
		

    </script>
    <script>var _hmt = _hmt || []; (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();
    </script>
  </body>

</html>